package com.heima.pd.aggregation.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2022-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pd_area")
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer Id;

    /**
     * 父级行政
     */
    private Integer parentId;

    /**
     * 行政名称
     */
    private String name;

    private String areaCode;

    private String cityCode;

    private String mergerName;

    private String shortName;

    private String zipCode;

    /**
     * 行政区域等级（0: 省级 1:市级 2:县级 3:镇级 4:乡村级）
     */
    private Integer level;

    private String lng;

    private String lat;

    /**
     * 拼音
     */
    private String pinyin;

    /**
     * 首字母
     */
    private String first;

    //@TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //@TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    //@TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //@TableField(fill = FieldFill.INSERT)
    private Long createUser;


}
